package com.partner.bean.login;

import java.util.Collection;  

import org.springframework.security.core.GrantedAuthority;  
import org.springframework.security.core.userdetails.User;  
/** 
 * 登录用户详细信息 
 * @author dwr 
 * 
 */  
public class UserDetail extends User{  
      
    private static final long serialVersionUID = -6889247576063361649L;  
    private String username;        //用户名（账号）  
    private String realName;      //真实姓名  
      
    public UserDetail(String username, String password,Collection<? extends GrantedAuthority> authorities) {  
        super(username, password, authorities);  
    }  
  
    public UserDetail(String username, String password, boolean enabled,  
            boolean accountNonExpired, boolean credentialsNonExpired,  
            boolean accountNonLocked,  
            Collection<? extends GrantedAuthority> authorities) {  
        super(username, password, enabled, accountNonExpired, credentialsNonExpired,  
                accountNonLocked, authorities);  
    }  
  
    public String getUserName() {  
        return username;  
    }  
  
    public void setUserName(String username) {  
        this.username = username;  
    }  
  
    public String getRealName() {  
        return realName;  
    }  
  
    public void setRealName(String realName) {  
        this.realName = realName;  
    }  
  
  
}
